package com.example.mall.network

import com.example.mall.entity.GoodsInfo
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

interface GoodsService {
    @GET("goods")
    fun getGoodsList(): Call<List<GoodsInfo>>

    @GET("goods/detail")
    fun getGoodsById(@Query("id") id : Int): Call<GoodsInfo>
}